package javaer.dev.manual.depthclone;

import java.util.ArrayList;
import java.util.List;

public class OrderMocker {


    public static Order mock() {
        Order order = new Order();
        order.setId(1L);
        order.setOrderNo("abcdefg");

        List<Item> itemList = new ArrayList<>();
        itemList.add(new Item(1L, 1000L, "aaaa", "desc"));
        itemList.add(new Item(2L, 1001L, "bbbb", "desc"));
        itemList.add(new Item(3L, 1002L, "cccc", "desc"));

        order.setItemList(itemList);

        return order;
    }

}
